<?php
namespace Home\Controller;
use Think\Controller;
class NewsController extends Controller {
    
    public function newsDetail(){
    	$id = (int)I('get.id');
    	$notice = M('notice');

    	$data = $notice -> where('id = "'.$id.'"') -> find();
    	$data['content'] = htmlspecialchars_decode($data['content']);
    	// var_dump($data);
    	$this -> assign('data',$data);
        $this -> display();
    }
}